/*
 * Created on Jan 16, 2006
 */
package dbsucxentW;

/**
 * @author Seah Boon Siew
 *
 * Encapsulates the information related to a database
 */
// A class that stores information about the currently connected or to be connected database

public class DatabaseInfo {
	String 	_name, _user, _pass;
	int		_mode = Sucxent.SUCXENT;
	boolean _connected;
	
	public DatabaseInfo(String name, int mode, String user, String pass, boolean connected){
		_name = name;
		_mode = mode;
		_user = user;
		_pass = pass;
		_connected = connected;
	}
	
	public int getMode(){
		return _mode;
	}
	
	public String getName(){
		return _name;
	}
	public String getUser(){
		return _user;
	}
	public String getPass(){
		return _pass;
	}

	public boolean getConnected() {
		return _connected;
	}
	
	public void setConnected(boolean connected) {
		_connected = connected;
	}
}
